dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f06fd8
)
Fixlet for two-pass dump: strip carriage returns to normalize newlines.
author
Brion Vibber
<brion@users.mediawiki.org>
Wed, 19 Oct 2005 20:51:01 +0000
(20:51 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Wed, 19 Oct 2005 20:51:01 +0000
(20:51 +0000)
maintenance/dumpTextPass.php
patch
|
blob
|
history
diff --git
a/maintenance/dumpTextPass.php
b/maintenance/dumpTextPass.php
index
235196b
..
6b3b2ab
100644
(file)
--- a/
maintenance/dumpTextPass.php
+++ b/
maintenance/dumpTextPass.php
@@
-118,7
+118,10
@@
class TextPassDumper extends BackupDumper {
array( 'old_text', 'old_flags' ),
array( 'old_id' => $id ),
'TextPassDumper::getText' );
- return UtfNormal::cleanUp( strval( Revision::getRevisionText( $row ) ) );
+ $text = Revision::getRevisionText( $row );
+ $stripped = str_replace( "\r", "", $text );
+ $normalized = UtfNormal::cleanUp( $stripped );
+ return $normalized;
}
function startElement( $parser, $name, $attribs ) {